<template>
    <view>
        <view class="matchBox">
            <image class="img" :src="require('../static/matchProduct.png')"></image>
            <view class="des1">正在查询匹配信息…</view>
            <view class="des2" style="color: #545454; margin-top: 40rpx; font-size: 26rpx">
                精准匹配预计需要5分钟以上，您可以在页面
                <text style="color: #2872fd" @click="viewMatchHistory">我的-匹配列表</text>进行结果查看     
            </view>
        </view>
        <view class="footerBox">
            <view class="btnBox2">
                <button class="estimate" @click="backHome">返回首页</button>
            </view>
        </view>
    </view>
</template>

<script>

export default {
    data() {
        return {

        };
    },
    methods: {
        viewMatchHistory() {
            uni.redirectTo({
                url: "/pagesProduct/matchList/index"
            })
        },
        backHome() {
            uni.switchTab({
                url: '/pages/index/index'
            })
        },
    },
};
</script>

<style lang="scss" scoped>
.personFormStyle {
    margin-top: 40rpx;
    position: relative;
    padding-bottom: 20rpx;
    position: relative;
    z-index: 9;
    border-radius: 25rpx 25rpx 0 0;
    min-height: calc(100vh - 318rpx);

    .tabBox {
        height: 100rpx;
        display: flex;
        border-radius: 32rpx 32rpx 0rpx 0rpx;
        overflow: hidden;

        .tabItem {
            position: relative;
            flex: 1;
            line-height: 100rpx;
            text-align: center;
            font-weight: 500;
            font-size: 30rpx;
            color: #666666;
            background: #f3f3f3;

            .typeNumber {
                position: absolute;
                top: 16rpx;
                left: 30rpx;
                line-height: 33rpx;
                font-size: 24rpx;
                color: #bebebe;
            }

            .exact {
                position: relative;

                .command {
                    position: absolute;
                    margin-left: 20rpx;
                    display: inline;
                    padding: 2rpx 9rpx;
                    border-radius: 9rpx;
                    background: #ffb123;
                    right: -70rpx;
                    top: 50%;
                    line-height: 30rpx;
                    font-size: 20rpx;
                    color: #fff;
                    transform: translateY(-50%);

                    &::before {
                        content: "";
                        position: absolute;
                        left: -25rpx;
                        top: 50%;
                        transform: translateY(-50%);
                        border-top: 10rpx solid transparent;
                        border-right: 15rpx solid #ffb123;
                        border-left: 15rpx solid transparent;
                        border-bottom: 10rpx solid transparent;
                    }
                }
            }
        }

        .tabSelect {
            background: #ffffff;

            .typeNumber {
                color: #acc9ff;
            }

            .exact {
                color: #2872fd;
            }
        }
    }

    .footerBox {
        margin-top: 60rpx;
        margin-bottom: 63rpx;
        background-color: #fff;

        .checkBox {
            display: flex;
            justify-content: flex-start;
            align-items: center;
            margin-left: 30rpx;
        }

        .btnBox,
        .btnBox2 {
            margin-top: 82rpx;
            display: flex;

            .btnTips {
                width: 100%;
                font-weight: 400;
                font-size: 26rpx;
                color: #545454;
                margin-bottom: 40rpx;
                text-align: center;
            }

            .informationBtn {
                margin: 10rpx auto;
                border-radius: 60rpx !important;
                background: #2872fd;
                color: #ffffff;
                font-size: 28rpx;
                font-weight: 500;

                &:first-child {
                    background-color: #fff;
                    color: #2872fd;
                    border: 2rpx solid #2872fd;
                    width: 240rpx;
                    margin-right: 62rpx;
                }

                &:last-child {
                    width: 360rpx;
                }
            }

            .estimate {
                width: 686rpx;
                height: 88rpx;
                background: #2872fd;
                border-radius: 44rpx;
                color: #ffffff;
                font-size: 28rpx;
                font-weight: 500;
                line-height: 88rpx;
            }
        }

        .btnBox2 {
            flex-wrap: wrap;
        }
    }

    .companyName {
        text-align: right;
        padding-right: 10px;
    }

    /deep/ .uni-forms-item {
        border-bottom: 1px solid #f5f5f5;
        height: 101rpx;
        margin-bottom: 0rpx;
        display: flex;
        align-items: center;
    }
}

.questionBox {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    .form {
        width: 100%;
    }

    .image {
        width: 425rpx;
        margin-top: 25rpx;
        height: 325rpx;
    }

    .des1 {
        padding: 0 110rpx;
        font-weight: 500;
        font-size: 28rpx;
        color: #222222;
        text-align: center;
    }

    .des2 {
        font-weight: 500;
        font-size: 24rpx;
        color: #999999;
        margin-top: 20rpx;
    }
}

.matchBox {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 150rpx;

    .img {
        margin-top: 80rpx;
        width: 225rpx;
        height: 225rpx;
    }

    .des1 {
        width: 100%;
        text-align: center;
        font-weight: 600;
        font-size: 32rpx;
        color: #191919;
        margin-top: 20rpx;
    }

    .des2 {
        padding: 0 106rpx;
        text-align: center;
    }
}

.flexend {
    margin-top: 0rpx;
    font-size: 28rpx;
}

.info {
    position: absolute;
    right: 20rpx;
}

.uni-padding-wrap {
    width: 550rpx;
    padding: 0 100rpx;
}

/deep/.uni-forms-item__label {
    width: auto !important;
}

/deep/ .uni-input-placeholder {
    font-size: 28rpx;
}

/deep/ .uni-easyinput {
    text-align: right !important;
}

/deep/.uni-easyinput__content-input {
    margin-right: 20rpx !important;
    padding-left: 0rpx !important;
    padding-right: 0rpx !important;
}

/deep/ .uni-forms-item__error {
    left: auto;
    right: 0;
}

.btnStyle {
    // width: 160rpx;
    height: 50rpx;
    line-height: 50rpx;
    font-size: 28rpx;
    background: #2872fd;
    border: none;
    color: white;
    border-radius: 30rpx;
}

.btnDisabledStyle {
    // width: 200rpx;
    height: 50rpx;
    line-height: 50rpx;
    font-size: 28rpx;
    background: #cccccc;
    cursor: not-allowed;
    border: none;
    color: white;
}

button:after {
    border: none;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    height: 600rpx;
    background-color: #fff;
    text-align: center;
    width: 590rpx;
    margin: 0 auto;
    border-radius: 12rpx;
    position: relative;
    z-index: 999;
}

/deep/ .uni-checkbox-input {
    border-radius: 50%;
}

.companyTop {
    position: absolute;
    width: 100vw;
    height: 100vh;

    image {
        width: 100%;
        height: 100%;
    }
}

/deep/ .uni-forms-item__label {
    color: #111111;
}

/deep/ .uni-popup__wrapper {
    border-radius: 20rpx;
}
</style>
